<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>动画_复合属性</title>
    <style>
        .outer{
            width: 1000px;
            height: 100px;
            border: 1px solid black;
        }

        @keyframes goRight {
            0%{}

            100%{
                transform: translate(900px) rotate(360deg);
                background-color: red;
                border-radius: 50%
            }
        }

        .inner{
            width: 100px;
            height: 100px;
            background-color: blue;
            /*动画名,动画效果*/
            animation: goRight 3s 0.5s linear 3 backwards reverse running;
        }
        .outer:hover .inner{
            animation-play-state: paused;
        }
    </style>

</head>
<body>
<div class="outer">
    <div class="inner"></div>
</div>
</body>
</html>